using System;
using Microsoft.SPOT;

namespace A6281 {
	public class Delay {
		public Delay( int delayInMilliseconds ) {
			this.delayInMilliseconds = delayInMilliseconds;
		}

		public Delay( TimeSpan delay ) {
			this.delayInMilliseconds = ( int )delay.Milliseconds; // I think this needs to be ToMilliseconds(), which doesn't exist.
		}

		public void Execute() {
			System.Threading.Thread.Sleep( this.delayInMilliseconds );
		}

		protected int delayInMilliseconds;
	}
}
